<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2018/12/30
  Time: 17:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>库存增加减少审核</title>
    <jsp:include page="${pageContext.request.contextPath}/common/tag.jsp"/>
</head>
    <script>
        $(function () {
           $("#mytable").bootstrapTable({
               url : '${pageContext.request.contextPath}/audit/query',
               columns :[
                   {field:'danhao',title:'订单号',align:'center'},
                   {field:'sid',title:'商品编号',align:'center'},
                   {field:'sname',title:'商品名称',align:'center'},
                   {field:'guige',title:'规格',align:'center'},
                   {field:'rkfenlei.rkname',title:'入库类别',align:'center'},
                   {field:'shopNum',title:'增加数量',align:'center'},
                   //{field:'',title:'增加日期',align:'center'},
                   {field:'yingfu',title:'应付金额',align:'center'},
                   {field:'shop.shopName',title:'店铺',align:'center'},
                   {field:'supplier.gname',title:'供货商',align:'center'},
                   {field:'auditstatic.asname',title:'审核状态',align:'center'},
                   {field:'beizhu',title:'备注',align:'center'},
                   {title:'操作',align:'center',
                       formatter : function () {
                           return "<button class='btn btn-primary'>审核</button>"
                       }
                   }

               ]
           })
        });
    </script>
<body>
    <div class="container">
        <table id="mytable"></table>
    </div>
</body>
</html>
